﻿using Cloud.Core.Data;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Cloud.Entity
{
    [Serializable]
    public class Sys_Module : BaseEntity<int>
    {

        /// <summary>
        /// 父级模块ID
        /// </summary>
        [Display(Name = "父级模块ID")]
        [Required]       
        public int ParentID { get; set; }
        /// <summary>
        /// 模块名称
        /// </summary>
        [Display(Name = "模块名称")]
        [Required]
        [MaxLength(128, ErrorMessage = "{0}最长{1}位")]
        public string Name { get; set; }
        /// <summary>
        /// 图标路径
        /// </summary>
        [Display(Name = "图标路径")]      
        [MaxLength(128, ErrorMessage = "{0}最长{1}位")]
        public string IcoPath { get; set; }
        /// <summary>
        /// 是否是菜单
        /// true:是
        /// false:否
        /// </summary>
        [Display(Name = "是否是菜单")]
        [Required]
        public bool IsMenu { get; set; }
     
         /// <summary>
        /// 控制器名称
         /// </summary>
        [Display(Name = "控制器名称")]
       
        [MaxLength(128, ErrorMessage = "{0}最长{1}位")]
        public string ControllerName { get; set; }

        /// <summary>
        /// 动作名称
        /// </summary>
        [Display(Name = "动作名称")]
        
        [MaxLength(128, ErrorMessage = "{0}最长{1}位")]
        public string ActionName { get; set; }

        /// <summary>
        ///是否是GET请求
        /// true:是
        /// false:否
        /// </summary>
        [Display(Name = "是否是GET请求")]
        [Required]
        public bool IsGet { get; set; }
    }
}